#if defined mygeoip_inc
 #endscript
#endif
#define mygeoip_inc

#define MAX_COUNTRY_NAME	32
#define MAX_CITY_NAME		32


#pragma library "mygeoip"

native mygeoip_load(const path[]);
native mygeoip_isloaded();
native mygeoip_unload();

native mygeoip_code2(const ip[], dest[], size = sizeof dest);
native mygeoip_code3(const ip[], dest[], size = sizeof dest);
native mygeoip_country(const ip[], dest[], size = sizeof dest);

native mygeoip_code2byname(const name[], dest[], size = sizeof dest);
native mygeoip_code3byname(const name[], dest[], size = sizeof dest);
native mygeoip_countrybyname(const name[], dest[], size = sizeof dest);


native mygeoip_city_load(const path[]);
native mygeoip_city_isloaded();
native mygeoip_city_unload();

native mygeoip_city_name(const ip[], dest[], size = sizeof dest);
